﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="AdministratorList.aspx.cs" Inherits="web.admin.AdministratorList" 
    Title="链接列表" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Current_Item" id="TD1"><a id="listUrl" href="AdministratorList.aspx" runat="server">活跃用户列表</a></td>
                                <td class="Default_Item" id="TD2"><a id="addUrl" href="AdministratorAdd.aspx" runat="server">添加活跃用户</a></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
           <tr>
	            <td>
                   <asp:GridView ID="administratorList" runat="server" AutoGenerateColumns="False"  DataKeyNames="id" SkinID="orange">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="Label1" Text="用户名" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" Text='<%# Eval("username") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="30%" HorizontalAlign="Left"/>
                            </asp:TemplateField>
                              
                                               
                            <asp:HyperLinkField Text="删除" DataNavigateUrlFields="Id"  DataNavigateUrlFormatString="AdministratorList.aspx?id={0}&cmd=0" />                                                    
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	    </tbody>
    </table>	  
</asp:Content>
